<template>
	<view class="zxc_centent">
		
		<!-- 数据为空 -->
		  <!-- <u-empty style="padding-top:100upx;"></u-empty> -->
		  
		<view class="contract-progress">
			<!-- 步骤条 -->
			<view class="step-bar">
				<view class="step step_1" :class="stepActivation>=1 ? 'active' : 'inactivated'">
					<view class="round">
						<text>1</text>
					</view>
					<text class="describe-text">已发起</text>
				</view>
				<view class="line" :class="stepActivation>=2 ? 'active' : 'inactivated'">	
				</view>
				<view class="step step_2" :class="stepActivation>=2 ? 'active' : 'inactivated'">
					<view class="round">
						<text>2</text>
					</view>
					<text  class="describe-text">审核中</text>
				</view>
				<view class="line" :class="stepActivation>=3 ? 'active' : 'inactivated'">
				</view>
				<view class="step step_3" :class="stepActivation >= 3 ? 'active' : 'inactivated'">
					<view class="round">
						<text>3</text>
					</view>
					<text  class="describe-text">审核成功</text>
				</view>
			</view>
			<!-- 合同信息 -->
			<view class="contract-info">
				<view class="subtitle">
					<text>审核信息</text>
				</view>
				<view class="info">
					<view class="line">
						<text class="type">编号</text>
						<text class="value">1564</text>
					</view>
					<view class="line">
						<text class="type">发起时间</text>
						<text class="value">1564</text>
					</view>
					<view class="line">
						<text class="type">签署人</text>
						<text class="value">1564</text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data (){
			return {
				stepActivation: 2
			}
		}
	}
</script>

<style lang="scss">
	.zxc_centent{
		padding:0;
	}
	.contract-progress {
		// 步骤条
		.step-bar {
			display: flex;
			align-items: center;
			padding: 30rpx 80rpx;
			padding-bottom: 72rpx;
			background-color: #07C160;
			.step {
				display: flex;
				flex-direction: column;
				align-items: center;
				.round {
					width: 52rpx;
					height: 52rpx;
					font-size: 26rpx;
					color: #07C160;
					background: #FFFFFF;
					line-height: 44rpx;
					text-align: center;
					border-radius: 50%;
				}
				.describe-text {
					margin-top: 18rpx;
					font-size: 26rpx;
					color: #FFFFFF;
					line-height: 1;
					white-space: nowrap;
				}
			}
			
			.line {
				position: relative;
				top: -20rpx;
				margin: 0 6rpx;
				width: 165rpx;
				height: 2rpx;
				background: #FFFFFF;
			}
			.active {
				opacity: 1;
			}
			.inactivated {
				opacity: 0.6;
			}
		}
		// 合同信息
		.contract-info {
			position: relative;
			top: -30rpx;
			margin: 0 30rpx;
			padding: 0 30rpx;
			width: 698rpx;
			height: 372rpx;
			background: #FFFFFF;
			border-radius: 10rpx;
			box-sizing: border-box;
			.subtitle {
				font-size: 30rpx;
				color: #333333;
				height: 100rpx;
				line-height: 100rpx;
				border-bottom: 2rpx solid #F0F0F0;
				box-sizing: border-box;
				&::before {
					content: '';
					display: inline-block;
					margin-right: 12rpx;
					width: 10rpx;
					height: 26rpx;
					background: #07C160;
				}
			}
			.info {
				margin: 36rpx 5rpx;
				.line {
					display: flex;
					justify-content: space-between;
					margin-bottom: 12rpx;
					font-size: 28rpx;
					.type {
						color: #999999;
					}
					.value {
						color: #333333;
					}
				}	
			}
		}
	}
</style>